/*
 */
package org.vectrics.user;

import java.util.Date;

import org.vectrics.common.db.RecordObject;
import org.vectrics.common.db.Voidable;
import org.vectrics.location.Address;

/**
 * @author mmoore
 */
public class PersonAddress implements Voidable, RecordObject {
	private Long id = null;
    private Person person = null;
    private Address address = null;
    private PersonAddressType type = null;
    private Date dateStart = null;
    private Date dateEnd = null;
    private boolean voided = false;
    
    
	/**
	 * @return Returns the dateEnd.
	 */
	public Date getDateEnd() {
		return dateEnd;
	}
	/**
	 * @param dateEnd The dateEnd to set.
	 */
	public void setDateEnd(Date dateEnd) {
		this.dateEnd = dateEnd;
	}
	/**
	 * @return Returns the dateStart.
	 */
	public Date getDateStart() {
		return dateStart;
	}
	/**
	 * @param dateStart The dateStart to set.
	 */
	public void setDateStart(Date dateStart) {
		this.dateStart = dateStart;
	}
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}
    /**
     * @return Returns the address.
     */
    public Address getAddress() {
        return address;
    }
    /**
     * @param address The address to set.
     */
    public void setAddress(Address address) {
        this.address = address;
    }
    /**
     * @return Returns the person.
     */
    public Person getPerson() {
        return person;
    }
    /**
     * @param person The person to set.
     */
    public void setPerson(Person person) {
        this.person = person;
    }
    /**
     * @return Returns the type.
     */
    public PersonAddressType getType() {
        return type;
    }
    /**
     * @param type The type to set.
     */
    public void setType(PersonAddressType type) {
        this.type = type;
    }
    
    
    /**
     * @return Returns the voidable.
     */
    public boolean getVoided() {
        return voided;
    }
    /**
     * @param voidable The voidable to set.
     */
    public void setVoided(boolean voided) {
        this.voided = voided;
    }
}
